<?php
/*
 * IKPHP 爱客开源社区 @copyright (c) 2012-3000 IKPHP All Rights Reserved 
 * @Author 小麦
 * @Email:ikphp@sina.cn
 * @Description:网站首页
 */
class controller_index extends controller_frontend {
	public function _init() {
		parent::_init ();
		$this->user_mod = D ( 'common/user' );
	}
	public function index() {
		if (empty ( $this->visitor )) {
			//统计用户数
			$count_user = $this->user_mod->count ( '*' );
			$this->assign ( 'count_user', $count_user );
		}
		
		$this->_seo ();
		$this->display ();
	}
}